import { createRouter,createWebHistory, RouteRecordRaw } from "vue-router";
import Home from "../pages/Home/index.vue";
import About from "../pages/About/index.vue";
const routes: Array<RouteRecordRaw> = [
    {
        path: "/",
        name: "index",
        component: Home
    },
    {
      path: "/Home",
      name: "Home",
      component: Home
  },
    {
      path: "/About",
      name: "About",
      component: About
  }
];
 
const router = createRouter({
    history:createWebHistory(),
    routes
});
 
export default router;